package com.goods.controller.business;


import com.goods.business.controller.*;
import com.goods.business.mapper.ConsumerMapper;
import com.goods.business.mapper.InStockMapper;
import com.goods.business.mapper.ProductMapper;
import com.goods.business.mapper.ProductStockMapper;
import com.goods.business.pojo.Bizsupplier;
import com.goods.business.pojo.Student;
import com.goods.common.response.ResponseBean;
import com.goods.common.vo.business.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class ProductBusinessWbe {
    @Autowired
    StudentControllertt studentControllertt;
    @Autowired
    SupplierController supplierController;
    @Autowired
    ProductController productController;
    @Autowired
    ProductMapper productMapper;
    @Autowired
    InStockController inStockController;
    @Autowired
    InStockMapper inStockMapper;
    @Autowired
    ProductStockMapper productStockMapper;
    @Autowired
    ConsumerController consumerController;
    @Autowired
    ConsumerMapper consumerMapper;


    //http://www.localhost:8989/consumer/add
    @PostMapping("consumer/add")
    public ResponseBean consumerAdd(@RequestBody ConsumerVO consumerVO){
        consumerVO.setCreateTime(new Date());
        consumerMapper.insert(consumerVO);
        return ResponseBean.success();
    }
}




